package com.ls.pattern.visitor;

/**
 * @author 挥之以墨
 */
public class CEOVisitor implements IVisitor {

    @Override
    public void visit(Manager manager) {
        System.out.println("经理：" + manager.name + "，KPI：" + manager.kpi + "，产品数量：" + manager.getProductNums());
    }

    @Override
    public void visit(Engineer engineer) {
        System.out.println("工程师：" + engineer.name + "，KPI：" + engineer.kpi);
    }

}
